//
//  UIColor+Mango.h
//  Mango
//
//  Created by 胡超 on 2018/1/29.
//  Copyright © 2018年 胡超., ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Mango)

/** eg: UIColor.RGB(255, 0, 0) */
+ (UIColor*(^)(int r, int g, int b))RGB;

/** eg: UIColor.RGBA(255, 0, 0, 0.5) */
+ (UIColor*(^)(int r, int g, int b, float a))RGBA;

/** eg: UIColor.Hex(@"#FF0000") or UIColor.Hex(@"#FF0000,0.5") */
+ (UIColor*(^)(NSString *hexStr))Hex;

/** eg: UIColor.HexA(@"#FF0000", 0.5) */
+ (UIColor*(^)(NSString *hexStr, float a))HexA;

@end

NS_ASSUME_NONNULL_END
